package org.zh.home.dao;

import java.util.List;

import org.zh.home.entity.Resource;
import org.zh.home.model.Pager;
import org.zh.home.model.Query;

public interface IResourceDao extends IBase<Resource> {
	public List<Resource> listResourceByUser(int userId);
	public List<Resource> listResourceByRole(int roleId);
	public List<Integer> listResourceIdsByUser(int userId);
	public List<Integer> listResourceIdsByRole(int roleId);
	public Pager<Resource> findResource(List<Query> model);
}
